package com.hadoop;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LoggerTest {

   private static Logger logger = LoggerFactory.getLogger(LoggerTest.class);

    public static void main(String[] args) {

        logger.info("info_message "+"/user");
        logger.warn("warn_message");
        logger.error("error_message");


    }


    //1.3
    public static long floor(double d){
        String str = String.valueOf(d);
        String[] split = str.split(".");
        String s = split[0];
        return Long.parseLong(s);
    }

    public static long cile(double d){
        String str = String.valueOf(d);
        String[] split = str.split(".");
        String s = split[0];
        return Long.parseLong(s)+1;
    }



}
